import request from '@/utils/request';
/**
 * 库存列表
 */
export function listProductInventory(params) {
  return request({
    url: '/product/inventory/list',
    method: 'get',
    params: params
  })
}
/**
 * 添加库存
 */
export function addInventory(data) {
  return request({
    url: '/product/inventory/add',
    method: 'post',
    data: data
  })
}
/**
 * 修改库存
 */
export function updateProductInventory(data) {
  return request({
    url: '/product/inventory/update',
    method: 'put',
    data: data
  })
}
//获取仓库列表
export function getWarehouseList() {
  return request({
    url: '/product/inventory/warehouse/list',
    method: 'get'
  })
}
